package com.tubi.object2;
  //手机类
public class iphon {
     //成员变量   堆内存
     String name;
     int price;


     //成员方法
      public void  call (String name){
          int i = 0; //局部变量   栈内存
          System.out.println("给"+name+"打电话");
          System.out.println(this.name);
      }
      public void sendMesssage(){
          System.out.println("群发短信");
      }

}
